//
//  View+QZSwiftUI.swift
//  CrseAsst
//
//  Created by 申铭 on 2024/2/23.
//

import SwiftUI

extension View {
    
    /// 隐藏List分割线
    func hideListRowSeperator() -> some View {
        if #available(iOS 15, *) {
            return AnyView(self.listRowSeparator(.hidden))
        } else {
            return AnyView(self.frame(maxWidth: .infinity, maxHeight: .infinity, alignment: .leading)
                .listRowInsets(EdgeInsets(top: 10, leading: 10, bottom: 10, trailing: 10)))
        }
    }
}
